<template>
  <div class="order-container">
    <ItemView :item="item" v-for="item in orderList" :key="item.id"/>
  </div>
</template>

<script setup lang="ts">
import ItemView from "@/views/OrderView/components/ItemView.vue";
import {useOrder} from "@/views/OrderView/use/use.ts";
const props=defineProps<{
  type:string
}>()
const {orderList}=useOrder(props.type)
</script>

<style scoped lang="less">
.order-container{
  margin-top: 5px;
}
</style>